<script  lang='ts'>
export default{
    beforeCreate(){
        console.log('beforeCreate')
    },
    created(){
        console.log('created')

    },
    beforeMount(){
        console.log('beforeMount')
        
    },
    mounted(){
        console.log('mounted')

    },
    beforeUpdate(){
        console.log('beforeUpdate')

    },
    updated(){
        console.log('updated')

    },
    beforeUnmount(){
        console.log('beforeUnmount')

    },
    unmounted(){
        console.log('unmounted')

    }
}


</script>
       
<template>
      <h1>vue2生命周期</h1>
      
</template>
       
<style scoped>
       
</style>